﻿namespace CTP.CRM.Core.SharedModel
{
    internal class UserCenterServiceProvider
    {
        private static IServiceProvider _instance;

        public static IServiceProvider Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = ServiceDescriptors.BuildServiceProvider();
                    return _instance;
                }

                return _instance;
            }
        }

        public static IServiceCollection ServiceDescriptors { get; set; }
    }
}
